package com.itheima.discuss.service.impl;

import com.itheima.discuss.domain.Discuss;
import com.itheima.discuss.mapper.DiscussMapper;
import com.itheima.discuss.service.DiscussService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DiscussServiceImpl implements DiscussService {
    @Autowired
    private DiscussMapper discussMapper;

    @Override
    public Discuss findDiscussById(Integer id) {
        return discussMapper.findDiscussById(id);
    }

    @Override
    public List<Discuss> findAllDiscuss(Discuss discuss) {
        return discussMapper.findAllDiscuss(discuss);
    }
}
